home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1996
/
MacHack 1996.toast
/
Presentations
/
Presentations ’94
/
Timothy Knox
/
Help
/
Help Files
/
Constraints
/
La+Fa=Sol
< prev
next >
Wrap
Text File
|
1994-06-24
|
442b
|
32 lines
{PROBLEM: LA+FA=SOL all differents, no non significative letters}
(c)
;;;Variables
(r s l a f o)
;;;Constraints
((<>? l 0)
(<>? f 0)
(<>? s 0)
(<>? s l)
(<>? s a)
(<>? s f)
(<>? s o)
(<>? l a)
(<>? l f)
(<>? l o)
(<>? a f)
(<>? a o)
(<>? f o)
(=? (+ a a) (+ l (* 10 r)))
(=? (+ r (+ l f)) (+ o (* s 10))))
:::Domains
((0 1)
(0 1)
(0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8 9))